package com.auhaix.controller;

import com.auhaix.properties.UserProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Auhaix
 * E-mail: xh@qiandw.com
 * Description:
 * CreatedTime: 2017/7/25 14:56
 * Modified by:
 */
@RestController
@RequestMapping(value = "/hello")
public class HelloController {
   /* @Value("${duty}")
    private String duty;
    @Value("${age}")
    private Integer age;
    @Value("${content}")
    private String content;*/
   @Autowired
   private UserProperties userProperties;
    @GetMapping(value = "/say")
    public String say(){
        return userProperties.getDuty();
    }

}
